<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/FInclude/includeTaglibs.jsp"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<c:import url="/FInclude/backEndCssJs.jsp" />
</head>

<body>
<div style="margin-top: 100px;text-align: center;">
	<form id="login" class="form-inline" action="login" method="post">
		<div class="form-group">
			<div class="input-group">
				<div class="input-group-addon"><span class="dashicons dashicons-admin-users"></span></div>
				<input class="form-control" type="text" name="name" placeholder="your name">
			</div>
			<div class="input-group">
				<div class="input-group-addon"><span class="dashicons dashicons-lock"></span></div>
				<input class="form-control" type="password" name="pwd" placeholder="your password">
			</div>
		</div>
		<button type="submit" class="btn btn-default">Login</button>
	</form>
</div>
<script>
$("#login").submit(function(){return !!$(this).find("[name=name]").val() && !!$(this).find("[name=pwd]").val();});
</script>
</body>
</html>